package com.xiyuan.smartutils.constants;


/**
 * Boot常量定义
 *
 * @version v1.0.0 @author lgz 2018-8-15  新建与整理
 */
public interface SysConstants extends SignConstants
{
    public String NAME                       = "lgz8669";
    public String NAME_CN                    = "lgz8669";
    public String VERSION                    = "V1.0";
    
    /******************************************************************/
    //工程结构常量
    /******************************************************************/
    
    public String LIB_FOLDER                 = "./lib";
    public String LIB_CORE_JAR               = "./lib/smart-utils.jar";
    public String CONF_FOLDER                = "./conf";
    public String BOOT_CONF_XML              = "./conf/boot.xml";
    public String BOOT_CONF_INI              = "./conf/boot.ini";
    
    /******************************************************************/
    //默认配置常量
    /******************************************************************/
    
    public String BOOT                       = "boot";
    public String CONFIG                     = "config";
    public String SERVICE                    = "service";
    
    public String ITEM_NAME                  = _NAME_;
    public String ITEM_VERSION               = _VERSION_;
    public String ITEM_PORT                  = "port";
    public String ITEM_LIBEXT                = "libext";
    public String ITEM_INCLUDE               = "include";
    public String ITEM_EXCLUDE               = "exclude";
    
    /******************************************************************/
    //支持的命令常量
    /******************************************************************/
    
    public String START_A                    = "-s";
    public String CLOSE_A                    = "-c";
    public String INFO_A                     = "-i";
    public String TEST_A                     = "-t";
    public String RELOAD_A                   = "-r";
    public String HELP_A                     = "-h";
    public String QUESTION_A                 = "-?";
    
    public String START_C                    = "start";
    public String CLOSE_C                    = "close";
    public String INFO_C                     = "info";
    public String TEST_C                     = "test";
    public String RELOAD_C                   = "reload";
    public String HELP_C                     = "help";
    public String QUESTION_C                 = "?";
    
    /******************************************************************/
    //配置常量
    /******************************************************************/
    
    public String CONFIG_DTD_PATH            = "/org/zhiqim/kernel/config/zhiqim_config_1_5_0.dtd";
    public String CONFIG_DTD_URL             = "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd";
    
    public String CONFIG_DTD_PREFIX          = "-//"+NAME.toUpperCase()+" //DTD ";
    public String CONFIG_DTD_PUBLIC_ID       = CONFIG_DTD_PREFIX + NAME+" Configuration 1.5.0//EN";
    public String CONFIG_XML_DOCTYPE         = "<!DOCTYPE XIYUAN-CONF PUBLIC \""+ CONFIG_DTD_PUBLIC_ID +"\" \""+ CONFIG_DTD_URL +"\">";

    public String CONFIG_XML_HEAD            = "<"+NAME.toLowerCase()+"-conf>";
    public String CONFIG_XML_TAIL            = "</"+NAME.toLowerCase()+"-conf>";
    
    public String GROUP                      = "group";
    public String ID                         = _ID_;
    public String DESC                       = "desc";
    
    public String ITEM                       = "item";
    public String KEY                        = _KEY_;
    public String VALUE                      = _VALUE_;
    public String TYPE                       = _TYPE_;
}
